#ifndef FORMGROUP_H
#define FORMGROUP_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QShowEvent>

namespace Ui {
class FormGroup;
}

class FormGroup : public QWidget
{
    Q_OBJECT

public:
    explicit FormGroup(QSqlDatabase db, QWidget *parent = 0);
    ~FormGroup();

private slots:
    void on_actionAddGroup_triggered();
    void on_actionDelete_group_triggered();

private:
    Ui::FormGroup *ui;
    QSqlDatabase  dbase;
    QSqlTableModel *modelGroup;

    void showEvent(QShowEvent *);

};

#endif // FORMGROUP_H
